import Vue from 'vue'
import Router from 'vue-router'
import Index from '../views/index.vue'
import Login from '../components/login.vue'

Vue.use(Router)

export default new Router({
  mode: 'hash',
  linkActiveClass: 'active',
  routes: [{
    path: '/',
    redirect: 'index'
  }, {
    path: '/login',
    component: Login,
    name: 'login'
  }, {
    path: '/index',
    component: Index
  }]
})
